package org.huangxq.bigscreen.service

import org.huangxq.bigscreen.data.ThemeNameData
import org.huangxq.bigscreen.repository.ThemeNameRepository
import org.springframework.stereotype.Service

@Service
class RePortConfigService(val themeNameRepository: ThemeNameRepository) {

    fun getReportTitle(code:  String) = themeNameRepository.findById(code).get().name

    fun saveReportTitle(code: String, name: String) = themeNameRepository.save(ThemeNameData(code, name))
}